home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
indent18.lha
/
indent-1.8
/
memcpy.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-08
|
348b
|
19 lines
/* Copy LEN bytes starting at SRCADDR to DESTADDR. Result undefined
if the source overlaps with the destination.
Return DESTADDR. */
#ifdef USG
char *
memcpy (destaddr, srcaddr, len)
char *destaddr;
char *srcaddr;
int len;
{
char *dest = destaddr;
while (len-- > 0)
*destaddr++ = *srcaddr++;
return dest;
}
#endif